package huanzhao.erp.domain.enumerate.error;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author April
 * 2024/9/22 12:02
 * @version 1.0
 */
@Getter
@AllArgsConstructor
public enum PermissionError implements BaseErrorCode {
    PERMISSION_ERROR(300, "访问权限异常"),
    UNAUTHORIZED_ACCESS(301, "访问未授权"),
    AUTHORIZATION_IN_PROGRESS(302, "正在授权中"),
    AUTHORIZATION_DENIED(303, "用户授权申请被拒绝"),

    PRIVACY_SETTINGS_RESTRICT_ACCESS(310, "因访问对象隐私设置被拦截"),
    AUTHORIZATION_EXPIRED(311, "授权已过期"),
    NO_API_ACCESS_PERMISSION(312, "无权限使用 API"),
    ACCESS_BLOCKED(320, "用户访问被拦截"),
    ILLEGAL_IP_ADDRESS(323, "非法 IP 地址"),

    GATEWAY_ACCESS_RESTRICTED(324, "网关访问受限"),
    REGION_BLACKLISTED(325, "地域黑名单"),
    SERVICE_OVERDUE(326, "服务已欠费"),
    SIGNATURE_ERROR(327, "用户签名异常"),

    NEED_ADMIN(330, "需要为管理员"),
    NEED_ROOT(331, "需要为超级管理员"),
    NEED_WAREHOUSER(332, "需要为仓库管理员"),
    NEED_PURCHASER(333, "需要为采购人员"),
    NEED_INPUT(334, "需要为录入人员"),
    NEED_QC(335, "需要为质检人员"),
    NEED_UP(336, "需要为上架人员"),

    STAFF_NOT_IN_TEAM(340, "员工不在团队中"),
    STAFF_NOT_IN_DEPARTMENT(341, "员工不在部门中");
    private final int code;
    private final String message;
    }
